<?php

use yii\db\Migration;

/**
 * Handles adding columns to table `{{%ticket_sale}}`.
 */
class m240513_125919_add_is_online_sale_column_to_ticket_sales_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%ticket_sales}}', 'is_online_sale', $this->boolean());
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%ticket_sales}}', 'is_online_sale');
    }
}
